package edu.cuit.avatar;

import java.util.Date;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/4 11:06
 */
public class ReferenceTest {
    public static void main(String[] args) {
        int i = 1;
        int j = 2;

        i = j; //直接将j值赋值给i
        System.out.println("i = " + i); //2

        Date birthday = new Date();
        Date deadline = birthday; //将birthday引用赋值给deadline

        System.out.println(birthday == deadline); //true
    }
}
